import java.util.Scanner;
public class 判断闰年 {
    public static void main(String[] args) {
        System.out.println("输入年份");
        Scanner in = new Scanner(System.in);
        int year = in.nextInt();
        if(year%4==0 & year%100!=-0){
            System.out.println(year);
        }
        else if(year%400==0){
            System.out.println(year);
        }
        else {
            System.out.println("不是闰年");
        }
    }
}
